from django.db import models


# Create your models here.
class MovieMaoyan(models.Model):
    movie_id = models.CharField(max_length=10)
    cover_url = models.CharField(max_length=256)
    movie_name = models.CharField(max_length=40)
    actor = models.CharField(max_length=100)
    release_time = models.CharField(max_length=40)
    movie_introduce = models.CharField(max_length=65536)

    class Meta:
        managed = False
        db_table = 'movielist_info'


# 演职员信息
class MovieCelebrityList(models.Model):
    movie_id = models.CharField(max_length=10)
    cover_url = models.CharField(max_length=256)
    celebrity_type = models.CharField(max_length=20)
    celebrity_name = models.CharField(max_length=50)
    celebrity_role = models.CharField(max_length=50)

    class Meta:
        managed = False
        db_table = 'celegbritylist_info'


# 热门评论信息
class MovieCommentList(models.Model):
    movie_id = models.CharField(max_length=10)
    nick_name = models.CharField(max_length=48)
    cover_url = models.CharField(max_length=256)
    comment_date = models.CharField(max_length=24)
    comment_content = models.CharField(max_length=65536)

    class Meta:
        managed = False
        db_table = 'commentlist_info'


# 精选文章信息
class ArticleList(models.Model):
    article_id = models.CharField(max_length=10)
    title = models.CharField(max_length=50)
    extra = models.CharField(max_length=256)

    class Meta:
        managed = False
        db_table = 'articles'
